public class J01fuzhi {
    public static void main(String[] args) {
        int a = 3;
        changeA(a);
        // 3
        System.out.println("a = " + a);


        // 简化
        int m = 4;
        int n = m;
        n = 100;
        System.out.println("m = " + m);
    }

    public static void changeA(int a){
        a = 4;
    }
}
class J01fuzhi2{
    public static void main(String[] args) {
        int[] arr1 = {1,1};
        int[] arr2 = arr1;
        arr2[0] = 100;

        System.out.println(arr1[0]);//100


        System.out.println("=======");
        int[] arr100 = {88,99};
        changeArr(arr100);

        System.out.println(arr100[0]);//9527
    }

    public static void changeArr(int[] arr){
        arr[0]=9527;
    }
}
